package com.zmj.sy.mom.srv.aps.controller;


import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.zmj.sy.mom.srv.aps.bean.dto.orderCompare.OrderCompareDto;
import com.zmj.sy.mom.srv.aps.bean.vo.base.BaseListResVo;
import com.zmj.sy.mom.srv.aps.bean.vo.base.BasePageResVo;
import com.zmj.sy.mom.srv.aps.bean.vo.completeReport.AssemOrderVo;
import com.zmj.sy.mom.srv.aps.bean.vo.orderCompare.OrderCompareVo;
import com.zmj.sy.mom.srv.aps.service.CompleteReportService;
import com.zmj.sy.mom.srv.aps.service.OrderCompareService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description: 订单一致性对比
 *
 * @author: hejiahui
 * @since: 2024/9/12 18:16
 */
@Slf4j
@RequiredArgsConstructor
@Api(tags = "订单一致性对比")
@RestController
@RequestMapping("/orderCompare")
public class OrderCompareController {

    private final OrderCompareService orderCompareService;

    /**
     * @Description: 一致性对比
     *
     * @author: hejiahui
     * @since: 2024/9/13 8:50
     */
    @ApiOperation(value = "1.0 一致性对比", notes = "@author: hejiahui  @since: 2024年9月13日08:52:11 ")
    @ApiOperationSupport(order = 0)
    @GetMapping(value = "/getOrderCompare")
    public BaseListResVo<OrderCompareVo> getOrderCompare(OrderCompareDto dto) throws Exception {
        BaseListResVo<OrderCompareVo> page = orderCompareService.getOrderCompare(dto);
        return page;
    }
}
